package com.ant.backstage.service;

import com.ant.backstage.facade.ApiReturn;
import com.ant.backstage.facade.dto.UserDTO;
import com.ant.backstage.facade.model.User;
import com.ant.backstage.facade.request.UpdateUserInfoRequest;
import com.ant.backstage.facade.request.power.UpdateUseRolesRequest;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface UserService {
    User selectOneUser(Integer id);

    User selectUserByUid(String uid);

    PageInfo selectPageUserInfo(User user, int pageNum, int pageSize);

    ApiReturn updateUserInfo(UpdateUserInfoRequest user);

    ApiReturn updateUserRoles(List<String> split, UpdateUseRolesRequest roleAddRequest, ApiReturn apiReturn, UserDTO userPo);

    ApiReturn updateUserStatus(String status, String uid);

    ApiReturn selectUserContact(String uname, String contactType);

    ApiReturn selectUserInfo(String uid);

    ApiReturn selectTagsByType(String type);

}
